package com.tuozixuan.model;

import java.util.HashSet;
import java.util.Set;

import org.springframework.data.annotation.Id;

import com.redis.om.spring.annotations.Document;
import com.redis.om.spring.annotations.Indexed;
import com.redis.om.spring.annotations.Searchable;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.RequiredArgsConstructor;

@Data
@RequiredArgsConstructor(staticName = "of")
@AllArgsConstructor(access = AccessLevel.PROTECTED)
@Document
public class Merchant {

	  @Id 
	  private String id;
	  
	  @Searchable 
	  private String name;
	  
//	  @Indexed 
//	  private Point location;
	  
	  @Indexed 
	  private Set<String> sites = new HashSet<String>();
	  
	  @Indexed 
	  private Integer numberOfEmployees;
	  
	  @Indexed 
	  private Integer yearFounded;
	  
	  private String url;
	  
	  private boolean publiclyListed;
}
